package com.globant.util.log.details;

import java.sql.Date;

/**
 * Log Details model. Stores the log's data.
 * 
 * @author gonzalo.zarza
 * @version 20130125v1.1
 */

public class LogDetails {

	/* 
	================================================================================================
	 Fields
	================================================================================================
	*/
	private String		logId;
	private String		name;
	private long	    size;
	private Date		dateStart;
	private String		generalStatus;
	private float		efficiency;
	
	
	/* 
	================================================================================================
	 Methods
	================================================================================================
	*/
	/**
	 * Default constructor.
	 */
	public LogDetails(){ }	
	
	/**
	 * Extended constructor. Initialises the class fields.
	 * 
	 * @param logId				the log id
	 * @param name				the log name
	 * @param size				the log size
	 * @param dateStart			the log start date
	 * @param generalStatus		the log status
	 */
	public LogDetails(String logId, String name, int size, Date dateStart, String generalStatus) {
		this.logId            = logId;
		this.name             = name;
		this.size             = size;
		this.dateStart        = dateStart;
		this.generalStatus    = generalStatus;
		this.efficiency       = 0.0f;
	}

	/* ------------------------------------------------------------------------------------------ */
	
	@Override
	public String toString() {
		return "LogEfficiency [logId=" + logId + ", name=" + name + ", size="
				+ size + ", dateStart=" + dateStart + ", generalStatus="
				+ generalStatus + ", efficiency=" + efficiency + "]";
	}

	/* 
	================================================================================================
	 Getters y Setters
	================================================================================================
	*/
	public String getLogId() {
		return logId;
	}
	
	public void setLogId(String logId) {
		this.logId = logId;
	}
	
	/* ------------------------------------------------------------------------------------------ */
	
	public String getName() {
		return name;
	}
	
	public void setName(String name) {
		this.name = name;
	}
	
	/* ------------------------------------------------------------------------------------------ */
	
	public long getSize() {
		return size;
	}
	
	public void setSize(long size) {
		this.size = size;
	}
	
	/* ------------------------------------------------------------------------------------------ */
	
	public Date getDateStart() {
		return dateStart;
	}
	
	public void setDateStart(Date dateStart) {
		this.dateStart = dateStart;
	}
	
	/* ------------------------------------------------------------------------------------------ */
	
	public String getGeneralStatus() {
		return generalStatus;
	}
	
	public void setGeneralStatus(String generalStatus) {
		this.generalStatus = generalStatus;
	}
	
	/* ------------------------------------------------------------------------------------------ */
	
	public float getEfficiency() {
		return efficiency;
	}
	
	public void setEfficiency(float efficiency) {
		this.efficiency = efficiency;
	}
	
}
